<?php $this->headStyle()->captureStart()?>
<?php echo $this->render('css/style.css')?>
<?php $this->headStyle()->captureEnd()?>
<?php echo $this->headScript()->captureStart()?>
function selModule(){
	$(".selitem").removeClass('selitem');
	$(this).addClass('selitem');
	var module_name = $(this).children(":first-child").html();
	$.get("<?php echo $this->route('installform')?>", { m: module_name },
	 function(data){
  		$("#manForm").html(data);
	  });

	$("#manForm").show();
}

$(document).ready(function(){
$("#left li").click(selModule);
});
<?php $this->headScript()->captureEnd()?>
<div id="main">
<div id="left">
<p><?php echo $this->translate('not installed module list')?></p>

<?php if (count($this->all_modules)>0):?>
<ul>
<?php foreach($this->all_modules as $module): ?>
<li><span><?php echo $module['name'] ?></span> -- <?php echo $this->translate($module['title']) ?></li>
<?php endforeach; ?>
</ul>
<?php else:?>
<h3 class="allinstall"><?php echo $this->translate('all modules are installed')?></h3>
<?php endif?>

</div>
<div id="content">
<!-- 內容區 -->
<div id="manForm">

</div>
</div>
</div>
<div class="clear"></div>